<?php

use Drupal\shusy_store_coupon\Entity\ShusyStoreCoupon;
use Drupal\shusy_store_coupon\Entity\ShusyStoreCouponHold;

function shusy_store_coupon_shusy_store_coupon_add_page() {
  $e = new ShusyStoreCoupon();
  module_load_include('inc', 'shusy_store_coupon', 'shusy_store_coupon.forms');
  return drupal_get_form('shusy_store_coupon_shusy_store_coupon_entity_form', $e, 'add');
}

function shusy_store_coupon_shusy_store_coupon_view_page(ShusyStoreCoupon $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_store_coupon_shusy_store_coupon_edit_page(ShusyStoreCoupon $e) {
  module_load_include('inc', 'shusy_store_coupon', 'shusy_store_coupon.forms');
  return drupal_get_form('shusy_store_coupon_shusy_store_coupon_entity_form', $e, 'edit');
}

function shusy_store_coupon_shusy_store_coupon_delete_page(ShusyStoreCoupon $e) {
  module_load_include('inc', 'shusy_store_coupon', 'shusy_store_coupon.forms');
  return drupal_get_form('shusy_store_coupon_shusy_store_coupon_delete_form', $e);
}

function shusy_store_coupon_shusy_store_coupon_hold_add_page() {
  $e = new ShusyStoreCouponHold();
  module_load_include('inc', 'shusy_store_coupon', 'shusy_store_coupon.forms');
  return drupal_get_form('shusy_store_coupon_shusy_store_coupon_hold_entity_form', $e, 'add');
}

function shusy_store_coupon_shusy_store_coupon_hold_view_page(ShusyStoreCouponHold $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_store_coupon_shusy_store_coupon_hold_edit_page(ShusyStoreCouponHold $e) {
  module_load_include('inc', 'shusy_store_coupon', 'shusy_store_coupon.forms');
  return drupal_get_form('shusy_store_coupon_shusy_store_coupon_hold_entity_form', $e, 'edit');
}

function shusy_store_coupon_shusy_store_coupon_hold_delete_page(ShusyStoreCouponHold $e) {
  module_load_include('inc', 'shusy_store_coupon', 'shusy_store_coupon.forms');
  return drupal_get_form('shusy_store_coupon_shusy_store_coupon_hold_delete_form', $e);
}

